﻿#region (C) Header Region @ 2012
//====================================================
// 文件: LogProviderConfigurationSection.cs
// 描述: 
// 路径: Antu.Core\Logger\LogProviderConfigurationSection.cs
// ******************版本1 ******************
// 人员: 蔡金保    时间 : 2012/11/15 11:25:47
// 注释:
//====================================================
#endregion

using System.Configuration;

namespace Antu.Core.Logger
{
    partial class LogProviderConfigurationSection : ConfigurationSection
    {
        /// <summary>
        /// LogProvider的所有的Provider集合
        /// </summary>
        [ConfigurationProperty("providers")]
        public ProviderSettingsCollection Providers
        {
            get { return (ProviderSettingsCollection)base["providers"]; }
        }

        /// <summary>
        /// LogProvider的默认的Provider
        /// </summary>
        [StringValidator(MinLength = 1)]
        [ConfigurationProperty("defaultProvider", DefaultValue = "LogXMLProvider")]
        public string DefaultProvider
        {
            get { return (string)base["defaultProvider"]; }
            set { base["defaultProvider"] = value; }
        }

        /// <summary>
        /// 是否使用异常日志
        /// </summary>
        [StringValidator(MinLength = 1)]
        [ConfigurationProperty("useErrLog", DefaultValue = "False")]
        public string UseErrLog
        {
            get { return (string)base["useErrLog"]; }
            set
            {
                base["useErrLog"] = value;
            }
        }

        /// <summary>
        /// 是否使用事务日志
        /// </summary>
        [StringValidator(MinLength = 1)]
        [ConfigurationProperty("useInfoLog", DefaultValue = "False")]
        public string UseInfoLog
        {
            get { return (string)base["useInfoLog"]; }
            set
            {
                base["useInfoLog"] = value;
            }
        }

    }
}
